<?php
namespace app\admin\controller;
use think\Controller;
use think\Session;

class AdminBase extends Controller
{
	public $title='';
	public function _initialize(){
        $title = '网站后台';
        $this->assign('title',$title);

	if (!Session::has('username')) {
		$this->error('你还没有登录！','./admin/login');
		 //$this->redirect('./admin/login');
	} 
	

    }
     
}
